<?php
		//echo 'here with and info '.$userName;
			$hand['Players'][$userName]['startingStack'] = str_replace(',','',$hand['Players'][$userName]['startingStack']);
			$hand['Players'][$userName]['endStack'] = str_replace(',','',$hand['Players'][$userName]['endStack']);
	
			$won = (
				($hand['Players'][$userName]['endStack']+$hand['antes']
					-$hand['Players'][$userName]['startingStack']) >= 0 
			) ? 'Won' : 'Lost';
			$notCommitted = ( $hand['Players'][$userName]['startingStack']-$hand['antes']
				==
			$hand['Players'][$userName]['endStack'] );
	
			//don't treat undefended compulsory bets as a loss#
			$bigBlind = ($hand['blinds']['big']['player'] == $userName);
			$smallBlind = ($hand['blinds']['small']['player'] == $userName);
	
			$blinds = ($bigBlind) ? 'BigBlind' : $smallBlind;
	
			if($won=='Lost' && ($bigBlind || $smallBlind)){
				//did we bet?
				$loss =($hand['Players'][$userName]['endStack']+$hand['antes'] - $hand['Players'][$userName]['startingStack']);
				$loss = ($loss<0) ? $loss*-1 : $loss;
				//echo 'in the blinds loss is '.$loss;
	
				if(('$'.$loss == $hand['bigBet'] && $bigBlind)  || ('$'.$loss == $hand['smallBet'] && $smallBlind) ) $notCommitted = true;
			}
			
			$status = ($notCommitted) ? 'fold' : $won;	
			echo '<div class="handInfo"> #'.$handNumber.' '.$blinds.' '.$status.'</div>';
?>